import request from "@/plugins/request";

//动态接口地址
export function getAction(url: string, data: Record<string, any>) {
  return request({
    url: url,
    method: "get",
    params: data,
  });
}

//获得存储上传的token
export function getUploadToken (data: Record<string, any>) {
    return request({
      url: "/api/admin/file/upload/token",
      method: "get",
      params: data,
    });
}